package com.th.supcom.pds.internal.api.phamapply;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.th.supcom.pds.domain.pojo.InpPhamApplyMaster;

public interface InpPhamApplyMasterBasicService
{
    /** 日志记录器. */
    public static final Logger s_logger = LoggerFactory.getLogger (InpPhamApplyMasterBasicService.class);

    /**
     * 通过主键ID查询表记录.
     * 
     * @param id 主键ID
     * @return 返回InpPhamApplyMaster
     */
    public InpPhamApplyMaster getInpPhamApplyMasterByID (Long id);

    /**
     * 通过请领单据号查询请领主记录
     * 
     * @param applyNo
     * @return
     */
    public InpPhamApplyMaster getInpPhamApplyMasterByApplyNo (String applyNo);

    /**
     * 通过传输对象对应值查询表记录.
     * 
     * @param inpPhamApplyMaster 传输对象.
     * @return InpPhamApplyMaster 结果对象.
     */
    public List <InpPhamApplyMaster> findInpPhamApplyMasterListByExample (InpPhamApplyMaster inpPhamApplyMaster);

    /**
     * 通过传输对象对应值查询表记录条数.
     * 
     * @param inpPhamApplyMaster 传输对象.
     * @return 条数.
     */
    public int findInpPhamApplyMasterCountByExample (InpPhamApplyMaster inpPhamApplyMaster);

    /**
     * 通过主键ID更新表记录.
     * 
     * @param inpPhamApplyMaster 要更新的传输对象
     * @return 返回更新条数
     */
    public int modifyInpPhamApplyMaster (InpPhamApplyMaster inpPhamApplyMaster);

    /**
     * 通过主键ID更新表记录，字段有值才更新.
     * 
     * @param inpPhamApplyMaster 更新的传输对象.
     * @return 更新条数.
     */
    public int modifyInpPhamApplyMasterByExample (InpPhamApplyMaster inpPhamApplyMaster);

    /**
     * 通过VO对象插入记录.
     * 
     * @param inpPhamApplyMaster 要插入的传输对象
     */
    public Long addInpPhamApplyMaster (InpPhamApplyMaster inpPhamApplyMaster);

    /**
     * 通过主键ID删除表记录.
     * 
     * @param id 要删除的表的主键ID
     * @return 删除条数
     */
    public int removeInpPhamApplyMasterByID (Long id);

    /**
     * 查询护理单元在当前药房有未执行请领明细的请领主单据
     * 
     * @param nurseUnitCode
     * @param dispensary
     */
    public List <InpPhamApplyMaster> findApplyMasterByNurseCodeAndDispensary (String nurseUnitCode, String dispensary);

    /** 公司版权信息. */
    public static final String copyright = "Copyright 2014, XuNuo Corporation";

    /** 提交路径. */
    public static final String SCC_BRANCH = "$URL$";

    /** 提交日期. */
    public static final String SCC_LAST_MODIFICATION_DATE = "$Date$";

    /** 最终修改人员. */
    public static final String SCC_LAST_MODIFIER_NAME = "$Author$";

    /** 最终版本号. */
    public static final String SCC_REVISION = "$Revision$";
}
